package My;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        if (n != 1 && n != 2) {
            System.out.println("Wrong Format");
            return;
        }
        Level level = new Level(1);
        Dial dial = new Dial(1);
        Brush brush = new Brush(0);
        if (n == 1) {
            level.setN(4);//有4个档位
            dial.setN(3);//有三个刻度
        } else {
            level.setN(5);//5个档位
            dial.setN(5);//5个刻度
        }
        int flag = 0;//进行标记操作，当识别到其他未知数时，flag变为1
        int choice = sc.nextInt();
        A a = new A(level,dial,brush);
        while (true) {
            flag = 0;//每次都进行重置
            switch (choice) {
                case 1://进行升档操作
                {
                    System.out.print("Lever up/");
                    level.levelUp();
                    break;
                }
                case 2://进行降档操作
                {
                    System.out.print("Lever down/");
                    level.levelDown();
                    break;
                }
                case 3://进行升刻度操作，操作间歇
                {
                    System.out.print("Dial up/");
                    dial.dialUp();
                    break;
                }
                case 4://进行降刻度操作
                {
                    System.out.print("Dial down/");
                    dial.dialDown();
                    break;
                }
                case 0://退出
                    return;
                default:
                    flag = 1;//进行分隔操作
                    break;
            }
            if (flag == 0) {
                a.print();
                System.out.println(brush.getSpeed());
            }
            choice = sc.nextInt();
        }
    }
}

class Level {
    private int level;//档位
    private int n;

    public Level(int level) {
        this.level = level;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getN() {
        return n;
    }

    public void setN(int n) {
        this.n = n;
    }

    public void levelUp() {
        if (level < n) {
            level++;
        }
    }

    public void levelDown() {
        if (level > 1) {
            level--;
        }
    }
}

class Dial {
    private int dial;//刻度
    private int n;

    public Dial(int dial) {
        this.dial = dial;
    }

    public int getDial() {
        return dial;
    }

    public void setDial(int dial) {
        this.dial = dial;
    }

    public int getN() {
        return n;
    }

    public void setN(int n) {
        this.n = n;
    }

    public void dialUp() {
        if (dial < n) {
            dial++;
        }
    }

    public void dialDown() {
        if (dial > 1) {
            dial--;
        }
    }
}

class Brush {
    private int speed;

    public Brush(int speed) {
        this.speed = speed;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }
}

class A {
    private Level l;
    private Dial d;
    private Brush b;

    public A(Level l, Dial d, Brush b) {
        this.l = l;
        this.d = d;
        this.b = b;
    }

    public void print() {
        int ccc = this.d.getDial();
        int speed = 0;
        switch (l.getLevel()) {
            case 1://停止档位
                System.out.print("停止/" + ccc + "/");
                speed = 0;
                break;
            case 2://间歇档位
                System.out.print("间歇/" + ccc + "/");
                switch (ccc) {
                    case 1://第一刻度
                        speed = 4;
                        break;
                    case 2://第二刻度
                        speed = 6;
                        break;
                    case 3://第三刻度
                        speed = 12;
                        break;
                    case 4://第四刻度
                        speed = 15;
                        break;
                    case 5://第五刻度
                        speed = 20;
                        break;
                }
                break;
            case 3://低速档位
                System.out.print("低速/" + ccc + "/");
                speed = 30;
                break;
            case 4://高速档位
                System.out.print("高速/" + ccc + "/");
                speed = 60;
                break;
            case 5://超高速
                System.out.print("超高速/" + ccc + "/");
                speed = 90;
                break;
        }
        b.setSpeed(speed);
    }
}

